package com.cty._01_Base._02_Singleton;

/**
 * @Auther: cty
 * @Date: 2020/6/25 8:53
 * @Description: 静态内部类实现单例模式
 * @version: 1.0
 */
public class Singleton03 {
    private static class SingletonInstance {
        private static Singleton03 instance = new Singleton03();
    }

    private Singleton03(){
    }

    public static Singleton03 getInstance(){
        return SingletonInstance.instance;
    }

}  // end Singleton03{}
